package com.shareach.service;

import java.util.List;

import org.springframework.data.domain.Page;
import org.springframework.data.mongodb.core.query.Criteria;

import com.shareach.common.BaseQueryOrder;
import com.shareach.domain.BaseBankCardDomain;

/**
 * create time：2013-1-31 上午11:26:35
 * 
 * @author retryu
 * @since JDK 1.6
 * @version 1.0 description：
 */
public interface BaseBankCardService {
	Long save(BaseBankCardDomain doamin);

	void del(BaseBankCardDomain domian);

	@Deprecated
	void update(BaseBankCardDomain domain);

	// get by id
	BaseBankCardDomain getById(Long id);

	// get list
	@Deprecated
	List<BaseBankCardDomain> getList(BaseBankCardDomain domain);

	List<BaseBankCardDomain> getListByCriteria(Criteria criteria);

	// get list by page
	Page<BaseBankCardDomain> getPageResult(BaseBankCardDomain domain, BaseQueryOrder order);
}
